Optimal. Leaf size=32 \[ -4 \sqrt {a+a \cosh (x)}+2 x \sqrt {a+a \cosh (x)} \tanh \left (\frac {x}{2}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 32, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {3400, 3377,
2718} \begin {gather*} 2 x \tanh \left (\frac {x}{2}\right ) \sqrt {a \cosh (x)+a}-4 \sqrt {a \cosh (x)+a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2718
Rule 3377
Rule 3400
Rubi steps
\begin {align*} \int x \sqrt {a+a \cosh (x)} \, dx &=\left (\sqrt {a+a \cosh (x)} \text {sech}\left (\frac {x}{2}\right )\right ) \int x \cosh \left (\frac {x}{2}\right ) \, dx\\ &=2 x \sqrt {a+a \cosh (x)} \tanh \left (\frac {x}{2}\right )-\left (2 \sqrt {a+a \cosh (x)} \text {sech}\left (\frac {x}{2}\right )\right ) \int \sinh \left (\frac {x}{2}\right ) \, dx\\ &=-4 \sqrt {a+a \cosh (x)}+2 x \sqrt {a+a \cosh (x)} \tanh \left (\frac {x}{2}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 22, normalized size = 0.69 \begin {gather*} 2 \sqrt {a (1+\cosh (x))} \left (-2+x \tanh \left (\frac {x}{2}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.40, size = 38, normalized size = 1.19
method | result | size |
risch | \(\frac {\sqrt {2}\, \sqrt {a \left ({\mathrm e}^{x}+1\right )^{2} {\mathrm e}^{-x}}\, \left (x \,{\mathrm e}^{x}-x -2 \,{\mathrm e}^{x}-2\right )}{{\mathrm e}^{x}+1}\) | \(38\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.48, size = 44, normalized size = 1.38 \begin {gather*} -{\left (\sqrt {2} \sqrt {a} x - {\left (\sqrt {2} \sqrt {a} x - 2 \, \sqrt {2} \sqrt {a}\right )} e^{x} + 2 \, \sqrt {2} \sqrt {a}\right )} e^{\left (-\frac {1}{2} \, x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int x \sqrt {a \left (\cosh {\left (x \right )} + 1\right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.88, size = 39, normalized size = 1.22 \begin {gather*} -\frac {\sqrt {a+a\,\left (\frac {{\mathrm {e}}^{-x}}{2}+\frac {{\mathrm {e}}^x}{2}\right )}\,\left (2\,x+4\,{\mathrm {e}}^x-2\,x\,{\mathrm {e}}^x+4\right )}{{\mathrm {e}}^x+1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________